import layout from '@/layout/index'

const dictRouter = [
  {
    path: '/dict',
    component: layout,
    isParent: true,
    redirect: '/dict/list',
    meta: {
      title: 'dict',
      icon: 'dict'
    },
    children: [
      // 用户管理
      {
        path: '/dict/list',
        component: () => import('@/views/dict/list/index'),
        meta: {
          title: 'dictManage',
          icon: 'dict'
        }
      },
      // 角色
      {
        path: '/dict/create',
        component: () => import('@/views/dict/create/index'),
        meta: {
          title: 'create',
          icon: 'role'
        }
      }
    ]
  }
]

export default dictRouter
